<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\modules\mapp\models\MappErrorLog */
/* @var $form yii\bootstrap\ActiveForm */
?>

<div class="mapp-error-log-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->errorSummary($model); ?>

    <?= $form->field($model, 'app_id')->textInput()?>

    <?= $form->field($model, 'device_id')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'version_major')->textInput()?>

    <?= $form->field($model, 'version_mini')->textInput()?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'message')->textarea(['rows' => 6])?>

    <?= $form->field($model, 'created_at')->textInput()?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary'])?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
